seleziona_file($_GET[id_file]); $row = mysql_fetch_array($query); //define("percorso_pdf", "pdf/"); define("percorso_pdf", "C:/dir_utenti/web/xampp/htdocs/www.cattisport.com/pdf/"); // We'll be outputting a PDF header('Content-type: application/pdf'); // It will be called downloaded.pdf header('Content-Disposition: attachment; filename="'.$row[file].'"'); // The PDF source is in original.pdf readfile(percorso_pdf.$row['file']); ?>